package com.young.eventcoach.board;

import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.young.eventcoach.R;
import com.young.eventcoach.network.BoardItemData;

public class BoardListFooterView extends LinearLayout {
	TextView tv_more_list;
	public interface OnMoreListShowListener {
		public void onMoreListClick();
	}
	
	private OnMoreListShowListener mListener;
	
	public void setOnMoreListShowListener(OnMoreListShowListener listener) {
		mListener = listener;
	}
	
	public BoardListFooterView(Context context) {
		super(context);
		LayoutInflater.from(context).inflate(R.layout.board_list_footer, this);
		tv_more_list = (TextView)findViewById(R.id.tv_board_list_more);
		
		tv_more_list.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				mListener.onMoreListClick();
			}
		});
	}

}
